package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.domain.vo.FileUploadVO;
import lombok.Data;


/**
 * 入境旅游包机奖励统计对象 statistics
 *
 * @author ruoyi
 * @date 2025-04-21
 */
@TableName("statistics")
@Data
public class Statistics {
    private static final long serialVersionUID = 1L;

    /**
     * 统计记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业务ID
     */
    @Excel(name = "业务ID")
    @TableField(value = "business_id")
    private String businessId;

    /**
     * 申报单位
     */
    @Excel(name = "申报单位")
    @TableField(value = "reporting_unit")
    private String reportingUnit;

    /**
     * 酒店名称
     */
    @Excel(name = "酒店名称")
    @TableField(value = "hotel_name")
    private String hotelName;

    /**
     * 入住日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "check_in_date")
    private Date checkInDate;

    /**
     * 退房日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退房日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "leave_date")
    private Date leaveDate;

    /**
     * 人数
     */
    @Excel(name = "人数")
    @TableField(value = "people_count")
    private Long peopleCount;

    /**
     * 天数
     */
    @Excel(name = "天数")
    @TableField(value = "days")
    private Long days;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "updated_at")
    private Date updatedAt;

    //1 包机 2邮轮 3游船
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "status")
    private Integer status;;

    @TableField(exist = false)
    private List<FileUploadVO> files;

    @TableField(exist = false)
    private List<Examine>examines;

    /*
    事件类型 0 事前 1 事后
    */
    @TableField(value = "event_type")
    private Integer eventType;

    @TableField(exist = false)
    private String remark;

}
